<script setup lang="ts">
import { baseUrl } from '@/config'

defineProps({
  src: {
    type: String,
    default: ''
  },
  customStyle: {
    type: Object,
    default: () => {
      return {
        width: 'auto',
        height: 'auto'
      }
    }
  }
})
</script>

<template>
  <uv-avatar :src="src ? baseUrl + src : ''" :customStyle="customStyle" mode="widthFix"></uv-avatar>
</template>

<style lang="scss"></style>
